import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '../plugins/element'
import 'element-ui/lib/theme-chalk/index.css'

import axios from 'axios'

Vue.prototype.$axios = axios
axios.defaults.baseURL = "https://39.107.71.254:8443"
axios.interceptors.request.use(config=>{
  let token=window.sessionStorage.getItem('token')
  if(token){
    config.headers.token = token
  }
  return config
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
